package com.artisan.plugin;

import com.artisan.spi.StorePlugin;

import java.io.File;
import java.util.ServiceLoader;

public class API {

    public static void main(String[] args) {
        ServiceLoader<StorePlugin> serviceLoader = ServiceLoader.load(StorePlugin.class);
        serviceLoader.forEach(storePlugin -> storePlugin.saveFile(new File("/a")));
    }
}
